#!/usr/bin/env jruby
# -*- coding: us-ascii -*-
# Elizabeth Wiethoff 2008

require 'java'
require 'pp' if $DEBUG

dir = File.dirname(__FILE__)
require File.join(dir, '..', 'src', 'lib', 'gui', 'titledborder')

########################################

include_class 'java.awt.Dimension'
include_class 'javax.swing.JFrame'
include_class 'javax.swing.JPanel'

panel = JPanel.new
panel.setBorder(bigGrayTitledBorder('Big Bold Text'))
panel.setPreferredSize(Dimension.new(250, 100))

mainFrame = JFrame.new('Titled Border Demo')
mainFrame.getContentPane.add(panel)

mainFrame.pack
mainFrame.setDefaultCloseOperation(JFrame::EXIT_ON_CLOSE)
mainFrame.setVisible(true)
